@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>内容管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-lg-2 col-sm-3">
                                <div class="panel panel-default">
                                    <div class="panel-heading">栏目树</div>
                                    <div class="panel-body dept-tree">
                                        <ul id="bannerTree" class="ztree"></ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-10 col-sm-12">
                                <div class="row">
                                    <div class="col-lg-10 col-sm-12">
                                        <div class="row">
                                            <div class=" col-sm-3">
                                                <#NameCon id="condition" name="标题" placeholder="内容"/>
                                                <#button name="搜索" icon="fa-search" clickFun="Banner.search()"/>
                                                <#button name="重置" icon="fa-search" clickFun="Banner.resetSearch()"/>
                                            </div>
                                            <div class="col-sm-3" id="operatorDiv">
                                                <#SelectCon id="operator" name="操作人员" />
                                            </div>
<!--                                            <div class="col-sm-3">
                                                <#TimeCon id="startTime" name="操作时间" isTime="false" pattern="YYYY-MM-DD"/>
                                            </div>
                                            <div class="col-sm-3">
                                                <#TimeCon id="endTime" name="至" isTime="false" pattern="YYYY-MM-DD"/>
                                            </div>-->
                                            <div class="col-sm-2">
                                                <select class="form-control" id="timeIndex" name="minCycleC" data-bv-field="minCycleC">
                                                    <option value="1">操作时间</option>
                                                    <option value="2">统计时间</option>
                                                </select>
                                            </div>
                                            <div class="col-sm-2">
                                                <#TimeCon id="startTime" name="起" isTime="false" pattern="YYYY-MM-DD" />
                                            </div>
                                            <div class="col-sm-2">
                                                <#TimeCon id="endTime" name="至" isTime="false" pattern="YYYY-MM-DD" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="hidden-xs" id="BannerTableToolbar" role="group">
                                    @if(shiro.hasPermission("/banner/add")){
                                    <#button name="添加" icon="fa-plus" clickFun="Banner.openAddBanner()"/>
                                    @}
                                    @if(shiro.hasPermission("/banner/update")){
                                    <#button name="修改" icon="fa-plus" clickFun="Banner.openBannerDetail()" space="true"/>
                                    @}
                                    @if(shiro.hasPermission("/banner/delete")){
                                    <#button name="删除" icon="fa-plus" clickFun="Banner.delete()" space="true"/>
                                    @}
                                    <h4  style="margin:20px 20px ">阅读总次数：<span  class="label  label-danger"id="reads_count_"> 0</span> </h4>

                                    <h4 style="margin:20px 20px ">登录用户阅读次数：<span  class="label  label-danger"
                                                                                                id="reads_count_2">0 </span></h4>

                                </div>
                                <#table id="BannerTable"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/cms/banner/banner.js"></script>
<script src="${ctxPath}/static/js/common/ToolTip.js"></script>
@}
